Quote:
Originally Posted by Blunaigel
Can I include a command to tell kindlegen to use the "-c2" format?
|
As
HarryT has already correctly pointed out, you can simply add the
-c2 switch after Kindlegen, however, since Kindlegen will run several optimization passes for each file, I wouldn't recommend using the
-c2 switch in batch files.
Quote:
Originally Posted by Blunaigel
EDIT: oh and how about batch-processing with kindlestrip?
|
Assuming that you have ActivePython (or another Python 2.7 build) installed and Kindlestrip.py is the same folder as the batch file, you could use the following very simple batch file:
Code:
DEL conversion.log
FOR %%f IN ("*.epub") DO (
kindlegen "%%f" >> conversion.log
IF EXIST "%%~nf.mobi" (
ECHO ******************************* >> conversion.log
kindlestrip "%%~nf.mobi" "%%~nf.new" >> conversion.log
IF EXIST "%%~nf.new" (
DEL "%%~nf.mobi"
REN "%%~nf.new" "%%~nf.mobi"
)
)
)
The batch file works with KindleGen 2.9 and Kindlestrip 1.35.